package com.bjx.common.core.exception;

import com.bjx.common.core.constant.FrameConst;
import lombok.Data;

@Data
public class BJXException extends RuntimeException{
    private Integer code;
    private String msg;
    public BJXException(String msg){
        super();
        this.code = FrameConst.FAIL;
        this.msg = msg;
    }

    public BJXException(Integer code,String msg){
        super();
        this.code = code;
        this.msg = msg;
    }
}
